package cn.dong.ucenter.feign;

import cn.dong.base.dto.TradeOrderDto;
import cn.dong.ucenter.feign.fallback.TradeOrderServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@Service
@FeignClient(value = "service-order8899", fallback = TradeOrderServiceImpl.class)
public interface TradeOrderService {

    @GetMapping("/api/order/trade-order/inner/getOrderByMemberId/{id}")
    List<TradeOrderDto> getOrderByMemberId(@PathVariable("id") String id);

}
